const path = require('path')
module.exports = {
	chainWebpack: config => {
		config
			.plugin('define')
			.tap(args => {
				// args[0]['process.env'].SAAS_ENV = '"H5DD"'
				return args
			})
	},
	configureWebpack: config => {
		return {
			name: 'yhdz',
			resolve: {
				alias: {
					// '@': path.resolve('/'),
				}
			},
			devServer: {
				headers: {
					'Access-Control-Allow-Origin': '*'
				}
			}
		}
	},
};
